rewrite leetcode insertion sorted list