Tightened distortion checks
BUGFIX: now returning best hypothesis on last stack instead of first