Add implementation and test for hashmaps