Introduce signal_reduce

Same as signal_filter but max and min values keep their X.
Also removed adding the previous point, don't know if that was
nescessary.
Work on notebook
misc