Fix accumulator tree size

My logic was wrong - the accumulator tree needs to be one less than
the _second_ power of two greater than the number of nodes in the
smallest layer. Adjusted accordingly.