No, there is no bug here. MWS is restricted to be a power of 2, because of the logical & operations used to access the seen_ array. All looks good now. phew! --k