Computation of Matrix Chain Products. Part I