In order to do this efficiently, we'll define cut and join operations on our auxiliary trees.
Da bi se ovo radilo efikasno moramo da imamo definisano iseci i spoji operaciju kod naših pomoćnih stabala.