Red-black trees - initial implementation

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>