add new recursiveBFS method interface and implementation