Supramolecular terpolymers for covalent and non-covalent cross-linking