Next round: bounded box filter.
Pseudo-code for bounding box filter.