continue median of medians algorithm