In the current implementation of the RecordDB class, the insert and the delete methods don't take advantage of the fact that the array of records is in sorted order (by ssn). In fact, most of code for the search method could have been reused by the insert and delete methods. This homework asks you to modify the RecordDB class to do just this. Here are the specific modifications you should make.
Call the updated RecordDB class, the optimizedRecordDB class. To comprehensively test this class, expand on the main method that is currently part of the RecordDB class. Make sure that all aspects of all of your methods get tested. For example, you should make sure that the insert method correctly inserts at the beginning of the array, at the end of the array, as well as somewhere in the middle of the array. Similarly, think about different cases that the other methods have to deal with, and make sure that your tests cover all of those cases.
Submit the following files: optimizedRecordDB.java, optimizedRecordDB.readme, and optimizedRecordDB.pdf. The last file should describe what cases you considered for each of your methods and how you tested these cases.