Fix bugs that pop() and contains() should return NULL when head is NULL.
Add reverse_list() and insert_sorted() for Q3 answer.