a C wrapper for CmiGetHopsBetweenRanks