confusion matrices now working for step 1 and 2. resolved no path by majority voting leaf nodes of all subtrees