LinkedStack implementation