add singlelist and algorithms.cpp