An extension of package geoR that works with cost-based distances