Matrix Chain Solver (Aprosin Semenenko)