red-black tree: fix rotation code

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
red-black tree: the code works for insertions

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>