Handle n to be power of 2 in recurrence relation