[Spark-4976] trust region Newton method optimizer based on breeze's
implementation