implement insertion of red black tree