Function to compute ID3 based on WEKA