Solved by Pecot in post #7 
              
              
                The code is bright and very elegant! 
I am very happy with this exchange which taught me a lot. I will be able to continue my research. 
Thanks again for this help   
Friendly 
GP