Improved hashmap by using prime sizes