Perceptron Learning Algorithm using Scalding Typed API