Create list.cpp

implementation of the list class