stack (array and linkedlist implementation) of data structure