add docstring
add rectangles
Implement a naive matching algorithm