adding method dims() to core.Mat
fixed strings in n1_dims(): n1_dcols() -> n1_dims()
Merge pull request #1138 from janstarzy:mat-dist