ID3 algorithm implementation for college ML class