MapReduce algorithm to compute matrix multiplication: A x B