Use a small function to generate skip-list