Bloom filter in C++