completed basic bloomfilter