HashMap optimizations.
Added comparator placement mapping. Closes #42