print the final sorted array
notes on how to parallelize