SPARK-1246, added min max API to Double RDDs in java and scala APIs.