[index] Optimize R* choose_next_node - remove sort() and cleanup