I am trying to implement the code for the algorithm from this paper: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.123.2361&rep=rep1&type=pdf. I came to th