doing get Total DIstance from a cities linkedList