Implemented basic hash map get function