CMath::qsort_index() - Added test for sorting trivial vectors.  (Plus some minor cleanup/fixes in unit test.)
CMath::parallel_qsort_index(void*) - Prevent segfault when trying to sort zero-size-vectors.
CMath::qsort_index(T1*, T2*, size) - Prevent segfault when trying to sort zero-size-vectors.