in reply to Re^2: better algorithm: bitwise reordering
in thread better algorithm: bitwise reordering

That makes it a lot clearer - for a start I realize that you're counting rows from the bottom up, not the top down!
  • Comment on Re^3: better algorithm: bitwise reordering