adding matrix multiplication that is distributed