Perceptron with Margin implemented