Bitstate hashing