The Globular Cluster NGC 5286. II. Variable Stars