Optimization of Small DC Motors Using Functionality for Evaluation