fixed bug with number of dimensions to consider for a split