A Suite of Test Cases ***
In the testsuite() function many of the basic algorithm implemented above are checked against precomputed values.