Min and max over last N samples