Add function to determine bigger branch version