function classifymulti takes weighted set of decision trees