TMN: Trajectory Matching Networks for Predicting Similarity | Synapse