Fixed typos, and some clean up on HashMap code.
Continued working on HashMap solution of hierarchical problem.
Significant clean up and cleaner print messages as well.
Cleaner implementation for tree as well.