read in rows as matrix data