How artificial intelligence determined the outcome of the world's most important sailing regatta