hashmap -> hash_map; priority_queue -> binary_heap; git rid of most get_mut() calls