Efficient Nearest Neighbor Search Using Dynamic Programming | Synapse