Hashmap implementation.