add clear operation to hashmap