Find Closest Node to Given Two Nodes — CaffeCode