Hi, sorry for that but I needed the solution as soon as I could so I simply took the first idea I got, I saw the algorithm working thus I used it for the further works I had and I forgot to check the forum.
Yes of course I admit your solution is much better 😉