Trajectory Similarity Learning with Auxiliary Supervision and Optimal Matching