Algorithm demonstration program and method thereof