How to construct BFS-suitable data structure for adjacency list?
Result should be stored in new linked list.