Update SorterAnalyzer to handle sorting errors

* The basic analysis now returns Long.MAX_VALUE if the sorter
  crashes on the input.
* The one crash we've identified so far is a stack overflow.