completed Leftmost-Child Right-Sibling implementation of tree