update algorithm file