The algorithm of 51nod