Power of two algorithm was added