Variable stars in the globular cluster Messier 19