[SPARK-1987] EdgePartitionBuilder: More memory-efficient graph construction

use ParallelSorter from mockito.cglib