NewBloomFilter creates a new initialized bloom filter for given bitsPerKey.

Since bitsPerKey is persisted individually for each bloom filter serialization, bloom filters are backwards compatible with respect to changing bitsPerKey. This means that no big performance penalty will be experienced when changing the parameter. See documentation for opt.Options.Filter for more information.