Yes, I finally implemented it. :-D<br><br>Please note that this is just the initial design. If you don&#39;t like the API design, or anything in particular, please tell me!<br><br>I&#39;ve debugged it, and it seems to running okay, but I&#39;ll test it more thoroughly, and benchmark it later. For what it&#39;s worth, it seems to be somewhat faster. <br>
<br>There is one obvious bug in the implementation which I&#39;ve highlighted. There are ways to fix it, but that would make the code messier than it already is, and AFIAK it currently isn&#39;t a problem, but it could be in the future.<br>
<br>- Vishesh Handa<br><br>