added a distance calculator for gene to gene paths