commented algorithms.