Add LinearRegression example (Java API)
Minor fixes for LinearRegression example