Read matrix on cpu