Implement breadth first search using cuda