Fast percentile filtering