An implementation of BIP158 Golomb-Coded Set data structure.
NOTE: The code is mainly copy from rust-bitcoin project.