Use maximum fanout in merge sorter to compute a maximum memory requirement.
Change strict inequality to non-strict in binary search for fanout.