added segmented scan for umbers not power of 2