New algorithm for great elliptic sailing (GES)