Water soluble or water swellable polymers