add algorithm
fig.yml for blog