use rho's algorithm with documentation