Fix bug by copying list before sort
Remove outliers function
Fix quartiles
Add key to remove-outliers
Use new method of collapsing cords

We are now removing outliers (where an outlier is 1.5x interquartile
range above or below low and high quartiles) and using the mean
value. All non-outlier cords are considered to be used.