Split indices in two instead of a broken "median"
divide and conquer