Modified tree placement, added tree rotation