use common hdf5 functions from util, removed duplicated functions from CPUMatrix