Two more algorithm

The adding two more new algorithm is better than the basic one in the
last version.