Added a comment about the time complexity for traversing the list