Converted Stack to be implemented as closure
Moved the Stack Iterator code into Stack Class