implement peak detection in rc filter

data slicer now uses double peak detectors for threshold generation.
this makes threshold faster and more stable.