added linkedlist version of stack