Learning Representation for Anomaly Detection of Vehicle Trajectories