Add EnvelopeDetectorBlock class and tests.