Naive skip list code.