Added recursive element into getPotentialContactsWith for traversal purposes
Added check for number of children in branch