Move hamming distance to its own file + test, add test images