Added ability to initialize hashmap with values
improved hashmap implementation