Changed distance vector to use initializer-list and removed some clutter