samplesort, graph coloring and max subarray sum parallel algorithms implemented in mpi