An Approach to Optimizing Clinical Trials