Three additional implementations added, assuming r is sorted.
toyproblem/README extended