Added min and max to Scala and Java RDD, added min and max to StatCounter