Theoretically correct plain RR implementation. Untested but compiles.