Implemented parallel stable_sort