output majority class when depth>max