hashmap sorter and stats package for stuff