GEM Incorporating Context into Genomic Distance Estimation