Added LinkedList.toNodeArray() method