Added a class for testing the algorithms.

Found a bug in quicksort that needs fixing.