Implementing boolean percentile selector