adding readMatrix to DetMetrix class