Median of medians and selectIdx