Modified iterator for hashmap, added getitem and setitem