Multiprocessing for sorting arrays