application of stack in data structure