matrix chain multiplication, recursive way

matrix chain multiplication, recursive way