The leaders of the world's biggest economies want to know what's next for the Quad. A very complex computer algorithm may have delivered the answer.