fixes to the skiplist implementation + unit tests