FIX candidate_splits

Handled correctly cases in which there 0 or only 1 possible split.