implemented online (stochastic) LR and perceptron with false=-1 instead of 0