shortened it up a bit and removed some uneccessary memory allocations
added hamming distance and made it work... now to make it do something usefull