added scan operation on mpi