update algorithm-demo