Creates an array of linked list of all the nodes in each level.
i.e. This is a level - order linked list creation.