Extracted insertion sort from maxrects to own module.
Add doc notes for dynequeues.