let create n b =
let initv = if b then max_int else 0 in
let r = n mod bpi in
if r = 0 then
{ length = n; bits = Array.create (n / bpi) initv }
else begin
let s = n / bpi in
let b = Array.create (succ s) initv in
b.(s) <- b.(s) land low_mask.(r);
{ length = n; bits = b }
end