Modify hashmap to resize