First attempt at modified min/max finding
Fixes to above
Albert's outlier rejecting min max code