ok: alglib interpolator + persistence1d extrema finder