added hashmap deallocation helper function hashmap_free_all