fixed initializing distances in distance vector protocol