Well, I give up... Any way I turn, I bump into some wall... I've thought of half a dozen algorithms (one was even very similar to some here posted, but that I wanted to implement in some more creative ways, which, of course, can't be done due to KiXtart's limitations... [Frown] )

So, I give up.

I can however mention that AJH's code can be shrunk to 467 and still work: just remove the lonelly AND $a and it does the trick...

Later,
Fernando Madruga

[ 23. August 2002, 01:07: Message edited by: Fernando Madruga ]
_________________________
Later,   [b]Mad[/b]ruga