02.06.13 new ddmatrix creation function