fix parallel perceptron algorithm to work with collins perceptron