identifyOutliers function

A checkFunction for identifying outliers