added hamming distance calculation
Tests for image hash hamming