Implement function to take nodes from binary tree and place is array of linked lists