arrival cost implementation