Implement Vector struct and pass the linked list to vector