Online Detection of Mean Reversion in Algorithmic Pairs Trading