Changed sorting algorithm from merge sort (broken) to qsort it appears to be working now for all cases although whether there is a time speedup between parallel qsort and regular qsort is unknown