Fixed undefinded reference errors by combining list.cpp and list.h