Nice one, I wasn't aware of this algorithm. That's one thing I like so much about basic: it's so easy to play with these algorithms.