Used tail recursion in subsetOf and implemented filter with more advanced
loop that only loops over full buckets.