add grow, shrink and erase operations to hashmap