updated hamming to match the updated assignment and fixed a bug.