refactor bloom filter locking and fix it by inserting volatile markers
refactor couting hash class and parameterise hash function