Added tiebreaker facility to impervious and pervious search.  For impervious,
the first found cell wins, for pervious, the priority cell wins, else the
first found cell wins.
Updated grid_search to compute actual distance instead of squared distance
so that weigthed distance comparisons will work appropriately (with squared
distances, cells with distance 1 were receiving an unintential bonus)