A Rule-Based Optimization Method for Tooth Alignment