Perceptron Implementation - implementing Empirical Risk Minimization (ERM) and k-folds cross-validation