Optimization of Robot Links