C++ skiplist implementation