selected nodes now stored in linked list instead of array