Added quicksort and selection sort.
Also, do some refactoring of test cases to use a common test method.