1. Implement `compute_envelope` in utils.py 2. Add an option for `metric = 'envelope'` or `metric = 'rms'` in the intialization of RMSDetector
compute_envelopein utils.pymetric = 'envelope'ormetric = 'rms'in the intialization of RMSDetector