AnomalyDetection function

Automatic Anomaly detection