adding has_canonical_format to COO matrix