Changed ContourTree to use Sorting.stableSort instead of Arrays.sort because
Java 7 switched the default sorting algorithm from mergeSort to TimSort.  This
broke things for users of Java 7.