Documentation for algorithms