Quote Originally Posted by Hodor View Post
Maybe you're just having trouble understanding the Wikipedia example

I should add that it's relatively rare that I write working code in response to questions, but I think that the example code in the Wikipedia article is somewhat misleading (as mentioned). You went to the effort of at least reading the page, which many people don't seem to even bother doing, so I decided to use what I hope are better variable names. Aside from the naming of the variables the code is exactly the same but I hope it helps
Hodar Many thanks for you. You explained very well. It help me a lot