Added some code for hamming distance lookups, turns out the idea won't
work in reality
Finished the new phash lookup method, it successfully works, but doesnt
scale well, I hope it will hold...