Ross Quinlan's ID3 algorithm in Erlang