refactored map to use a hashmap.

This is slower, but I"m way more confident that it is working properly.
Merge branch 'master' of github.com:CompSciClub/Pathfinder