Updated the algorithm definitions