Fix the method extending the skip list

Had forgotten to extend the head list first.
Optimize extendSkipList by passing only through nodes with max level
Fix extendSkipList