Bloom Filter Algorithm in Scala