Breadth First Search on Distributed nodes in a Hadoop cluster