Categorical Vector and Hamming Distance