a. Write a member function List::swap(List& other) that swaps the elements of this list and other. Your method should work in O(1) time.
b. Write a member function List::get_size() that computes the number of elements in the list, by counting the elements until the end of the list is reached.