Faulty decision tree implementation