Wow, thanks a lot for the help!
It's typical, when you get so caught up in the algorithm, you miss 
stupid errors like the i parameter...:P

Thanks for the "ruby-fying" of the code, Simon. Right now, I find my own 
version a bit more readable, but I guess that's just because I've coded 
in Java and C for so long. It's definitely fun to code in Ruby, though, 
so I'll stick to it:)
Anyways, off to implement this in my OO-version!

-- 
Posted via http://www.ruby-forum.com/.