C++ programming homework, make my own list