red-black tree: improve the code a bit

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