Comments on algorithms, works out complexity