http://www.geeksforgeeks.org/dynamic-programming-set-8-matrix-chain-multiplication/