Revert 0c24e69..9149030

This rolls back to commit 0c24e6974563f04ff1cfc3ffced771cb81988a4d.
Merge branch 'hw2-redo' of https://github.com/sun-j/cs-projects into hw2-redo

Rolled back to when it still worked. Will work forwards by copy-pasta
code as functionality is tested.
Merge branch 'hw2-redo' of https://github.com/sun-j/cs-projects into hw2-redo
Test 1 Passed

Modified the code so that it would pass test 1.
Test 2 Passed

* Wrote a bash script test harness
* Whilst there is still stuff in cmp2, I can’t tell what’s wrong
* had to add a new function to conform to output (was doing it
previously with bool idiotBack which serendipitously worked)
Test 3 Passed

* added more instances of printExpected
* general cleaning
* still can’t figure out where the differences are
Test 4 Passed

* Copy pasta’d the functions relinker, insertNode and bloodhound from
the master branch.
* Encountered a really weird bug whereby the compiled output of my
script was different to when I did it by hand.
* still can’t figure out where the extra spaces are.
Test 5 Passed

* Copy pasta getString and searchNodes from master
* modified my bash script to detect infinite loops
* silenced warnings by forcing types
* Realised bugs on testing day came from me getting confused and
accidentally interchanging between memcpy and strcpy; strncmp and
memcmp; strlen and sizeof. Thats why I got such interesting error codes
that I couldn’t figure out.
Test 6 Passed

* This was an implementation I had done earlier before I wiped it in
favour of a slapdash approach
* it includes the implementation of a ‘ghost’ struct which stores all
the relevant variables from the previous messages
Interim Stash
Test 7 Passed

* abstracted the excising to a function to help it out
Note: wow this took me a long time to figure out.
Note: I still can’t find where the extra spaces are. Its not really
that visible. All the original outputs are reproducible via the cmp.sh
script I wrote. The argument is the test number you want to run.
Merge branch 'hw2-redo'