add figure of algorithm