I don't know how to implement the algorithm described on the readme. does anyone have a better idea how?