Added readMatrix().