Matthew Moss wrote:
> +5 pts if you know what algorithm is being used here...

I'm not going to try to golf it right now, but it looks like an inverse 
Burrows-Wheeler Transform.

Stephen

-- 
Stephen Lewis