line proximity heuristic added to match_one, added fildist data member