Changed the algorithm. Now the program uses bit-reversed increment.
Compile error fixes.
Fixed subscripts.
Replaced zero_counts with node_begin_pos_.
Merged bit-reverse-increment.