c++ programm to solve a simple model of airplanes routes