Initial commit of WIP PR for terasort benchmark.

As discussed on list, this is a WIP for Spark Terasort.
something similar to this one: https://github.com/rxin/spark/blob/sort-benchmark/core/src/main/scala/org/apache/spark/sort/Validate.scala