static int optimalNumOfBits(long n, double p) {
    return (int) (-n * Math.log(p) / (Math.log(2) * Math.log(2)));
  }
A constructor to support rebuilding the BloomFilter from a serialized representation.
@param bits - bits are used as such for bitset and are NOT copied, any changes to bits will affect bloom filter
@param numFuncs - number of hash functions
storage-api/src/java/org/apache/hive/common/util/BloomFilter.java