Better nbitvector implementation