Anomaly detection of flight routes through optimal waypoint