We can't just increment the prefix, since we have to prepend it to results later on.
Popcount while iterating over the mask of a node, instead of building up an array and then popcounting it.
Rewrote child_index_of() using a while loop, since we don't have to consider indexes above the cutoff index.