select K, [n/5] algo