added tests and worked on list.cpp
need to fix unqiue function: seg faults going through the nodes somehow