Try using a bitmap instead of an array

Somehow this didn't reduce the amount of code...

It might be faster and more memory efficient, at least if the source
file is well-behaved, and ReadOrder numbers are consecutive.