add some algorithms document