https://learnprogramming.in.net/optimal-matrix-chain-multiplication-in-go-programming-language/