Added sparse matrix parsing.