addding rope cuting and matrix chain multiplication faulty