Flint's XGCD with timing comparisons