Add check function to quicksort
Add check function to quicksort

Added a function to check whether or not an array is sorted after
the algorithm is finished. Then found out that for some inputs
the resulting array is NOT sorted. So there is an error somewhere.

timpel/stanford-algs,timpel/stanford-algs