Move NearestVersion classes into semver package.