Update my_algorithm.cpp