Linked list of linked list in C++. More details can be found in the cpp file