The ID3 algorithm for constructing decision trees