wrote main method for perceptron (gui copy paste)
fixed merge conflict