Variable stars in large magellanic cloud globular clusters. I. NGC 1466