Add setters for optimizer, gradient in SGD.
Also remove java-specific constructor for LabeledPoint.