Cleaned up: 
created inner class to get rid of ugly cast
changed names and added comments
Merge branch 'master' of https://github.com/od107/Algorithms2.git