Red Black Tree as template implementation