implemented ID3 decision tree for case