Implemented a regression model which improved accuracy significantly

Also fixed perceptron where both training and testing were being run on
testing data