stack implementation for push, pop, empty?, traverse,peek function