Create an array of linkedlist based on a binary tree

Use both BFS and DFS method to get nodes from the binary tree;
Node class for tree and graph