GHap: an R package for genome-wide haplotyping