Updated algorithm doc.