Added function to split the version numbers and compar