Solution for the matrix multiplication using map-reduce