C++ LinkList implement