Octave codes for machine learning tutorial