added a clear function to the skip list and moved test part to main.cpp