htable: reduce size of htable by storing perfect bitnum, not mask.