added chapter algorithms