Anomaly detection algorithm

Anomaly detection algorithm