BFS, only leaf should be add to sum