London underground itinerary checker, implemented in C++, back end