Yes, your sketch above is how the algorithm works.
_________________________
Regards,
Richard Ay - Consultant