Hi Tanuj,
A nice page. It is perfect if you can give some explanation for your pseudo code and do some proof reading.
Bests,
Yu Yan
Thanks Yu Yan. I've added comments in the code.