let to_string v = let n = v.length in let s = String.make n '0' in for i = 0 to n - 1 do if unsafe_get v i then s.[i] <- '1' done; s