added th algo implementation part

Rectified a few spelling mistakes
Added the aforementioned part
Have no issue to raise otherwise