Add automatic shrinking on delete to hmap