Added in boolean perceptron functions