Polymers used in ophthalmic in Situ gelling system