Fixed find_best_keysize

I fixed the find best keysize .... I think the problem was that you were working on bytes and the hamming distance function takes strings, but I rewrote the code to make it a bit simpler. ... let me know what you think