clean up algorithm, and add one test version of RS, with marked random points after all iterations