added return statements to return a new tree node after it is inserted into the red-black tree