Adding a function to return a pointer to hashmap's value