the stack interface using array and a linked list