fix algorithm documentation