Matlab program for matrix decomposition