Add function to calculate product of list of matrices.