Automatic Classification of Variable Stars