work on nav recognition, changing the search procedure, eliminating repeated computation for path matching