Add Envelope class, which analyzes samples to determine a pretty accurate envelope.
Sort 2d plot data by x-value before plotting.