Fixed a bug which caused an error in cases where a block size was equal to number of SNPs, we now check for this and avoid triggering uniroot if this is the case