add function ngb_search_startnode
modified function ngb_search_startnode
misc