hamming linear scan and hamming knn classifier
small utils
compatible with new changes