ID3 algorithm for binary decision trees