Parenthesize Matrix Chain