First commit, description of the algorithm.