Loading routines for matrixD