Trains scheduling problem with multiple lines | Synapse