add algorithm header