autoref: add simple algorithm