pixelman's matrix file reader