Jimbo added some triangle inequality tests

And we fixed the triangle inequality function to look in all
directions, as opposed to just following the paths in their respective
directions for inequality