Coursera machine learning Wu Enda programming homework answer (full marks)