Optimizing design of breeding programs