print vector of distances