Added test for a run that wraps around the end of the bitset.
Fixed an wrror in the quotient finding due to sign extension.