Cousera machine learning home work, taught by Andrew Ng