add insert operation to hashmap

By the way, the typedefs in base_type.h are changed. They now use types
declared in stdint.h as base types.