Incremental hashing for cat vectors