Improve performance (linked list to vector)