ML2: Ex2: better implementation of regularized cost function

* Uses more vectorization.
ML2: Ex2: new plot data solution