Fast vcf manipulation in R/C++