Reworked term to dft since its depth first traversal vs search.