ported eigenmat from deepnet and slightly unified CPUMatrix and matrix interfaces
use common hdf5 functions from util, removed duplicated functions from CPUMatrix
more unified functions interfaces