do you think it will be useful to check if the hashSpace is power of 2? and if it is, perform the bitmask?