Improved try-corner algorithm which computes a separate median distance in each corne...