As the algorithm being requested is somewhat special, I\'m trying to explain what I want first, then I\'ll ask concrete questions that I\'m quite unsure about: