Making versions a SortedSet.

Less computationally efficient, but properly sorted now.