rewrite a template version of skip list, but I found the speed has been slow down[TODO: bug to be fixed].