A effective hashmap implementation