Public interface for maxrects algorithm.