This is a core function. Parameters on how to consider a window homozygous are here (maxHet, maxMiss)
homoZygotTestCpp(x, gaps, maxHet, maxMiss, maxGap)vector of 0/1 genotypes (from genoConvert())
vector of differences between consecutive positions (gaps) in bps
max n. of heterozygous SNP in a homozygous window
max n. of missing in a window
max distance between consecutive SNP in a window to be still considered a potential run
TRUE/FALSE (whether a window is homozygous or NOT)