Code for the assignment on skip lists.