Added parallel sort which uses multithreading.