add path-searching applicaiton with depth first search