Lab BSTA - Binary Search Tree implemented with static array

The partial source code for this lab is at http://vpl.ccom.uprp.edu.

You are provided with the declaration of a template class BSTA that will implement a Binary Search Tree using a static array. The root of the array will be at index 1. You can assume that BST will only store unique elements (no duplicates). Notice the data members are:

https://i.imgur.com/OhXag2I.png

Figure 1. A BST and the state of its array implementation

Implement the following member functions:

The operator<< is currently overloaded for you to display a sideways representation of the graph. For example, if d is a BSTA that contains the elements in Figure 1. Then cout << d displays:

        10
    9
        8
7
        0
    -3

You are also provided a client that accepts the following commands and invokes the corresponding functions:

Your task is to implement the member functions of the BSTA class. You may add other public and private member (helper) functions. Do not modify the client.

You are given input files (input1.txt through input3.txt) that contain the inputs that will be provided to your program as part of the autograding. Output files (output1.txt through output3.txt) contain the expected results.