corenv function

Cross-correlation between two time wave envelopes