add minimal tests to perceptron and winnow
hamming distance