octave  algorithm for some machine learning problems.