-minor optimization, if we have found a left edge, then the right edge must be greater than the left edge
-added some tests
-version bump