Se questo algoritmo è poco chiaro, potete anche illustrarne uno voi. Basta che capisca come funzioni.