Fix reference computation in ID rank estimation to use relative rank

Signed-off-by: Andreas Kloeckner <inform@tiker.net>