A Pluggable Learned Index Method via Sampling and Gap Insertion