Update lib. Finish machine learning w/ gradient descent