How to Compile#
The code for this function is in the control F.cpp file and the test cases are in the testCase file.
g++ -std==c++11 controlF.cpp -o search
$ ./search test.txt "key"
The function will then ask which search algortihm to use for the search