Fixing lp speed
Fixing perceptron, working example