building trees added. added parent in node structure. rotate updated