Fix problem size calculation for 2^n.