implementation of probabilistic skip list in c++