ENH: Tweaks to PDFSegmenter algorithm and APIs