On the Optimality of Trees Generated by ID3