This repo contains programs to satisfy the 2nd lab of the coursera machine learning lab2