Update main.cc

parallel_prefix function is added. I tested it for parallel sum and it works, but we should add the code for matrix multiplication and then minor changes might be required for this function also!