A size N sequence of size K sequences, representing N points in K dimensions
split the sorted indices according to threshold, such that elements in res._1 refer to points < threshold, and res._2 to points >= threshold.
split the sorted indices according to threshold, such that elements in res._1 refer to points < threshold, and res._2 to points >= threshold. The element splitPoint excluded from the result