Comparison of parallel and sequential sorting algorithms