Fixes and additions to the document retrieval benchmark suite

This pull request a simple std:sort based document retrieval baseline (SORT) and fixes some calling stack overflow problems in SADA for large ranges.