Sparse Arrays, take three

Recall the sparse arrays of HW 4. Re-implement the SparseArray class of that homework but this time use a binary search tree rather than a linked list, in order to improve performance. Other than that the requirements are still the same:

As usual, submit a header file, an implementation file and a test program.