working beta of findEddyProximity.m