Small fixes in split_bitstring algo