Moved perceptron to it's own file, fixed error in perceptron.