-29 rectangles
-O(N) worst-case complexity
-Under 200 lines
https://gist.github.com/foxly/8168624 http://imgur.com/PXcUEHz