How to speed up R code: an introduction