Separate Pair class from list.c.
Add set and push function to List class.