Vcf manipulation in R/C++