ML excercises translated from Octave.