add new solution of breadth-first to flatting list