Recognize product of two matrices
Recognize triple matrix product.