Code to compute distance for eQTL