Decision Trees for Function Evaluation - Simultaneous Optimization of Worst and Expected Cost