Update algorithm.cs