how to calculate breadth - Search