perceptron classifier refactoring
added boolean perceptron classifier