• Finds the maximum element in the splay tree

    Finds the largest element in the tree and splays it to the root. This maintains the splay tree property that frequently accessed elements are moved closer to the root.

    Parameters

    Returns {
        tree: SplayTree<any>;
        value: any;
    }

    object containing the maximum value and the splayed tree