Added src/base/hashmap.c and associated tests