Non-adaptive threshold
adaptive threshold and benchmarks