updated for sets of rectangles
Merge branch 'master' of https://github.com/mingthor/coding