SPARK-3278 added isotonic regression for weighted data. Added tests for Java api