adding 2D matrix read/write in hdf5 interface