implemented Stack with LinkedList