An Approach to Detect Traffic Anomalies