MAP logistic regression
Starting to define an API for GPS, defining API for the gradient optimizer