added red-black tree code (unfinished)