add four algorithms Oct 22th