Continued refactoring of Stack class. Added next() and previous() methods to abstract the process of traversing a Stack.