a hybrid MPI/thread implementation of matrix multiply