Implementation of a bloom filter in Java