Make Point2D a trait and implement some point functionality
Implement a box filter