Pre-sort continuous variables to speed up _choose_split.
Switched from mean to count_nonzero to calculate proportions, as this way is faster.
Added boolean label tests.