add check red-black tree empty function
change counting of the nodes