Use @inbounds for filt

This gives a speedup of ~25%.