Finished up question 5, included a rehashing function to the map.