in-progress implementation of hash map add()