Distance vector algorithm added