An improved algorithm for computing all the best swap edges of a tree spanner