Added balacedInsert, adapted rootToBlack