Added isStable() to interface Sort and implemented it in all sorts.
Fixed bug in stable QuickSort.
Added test for sort stability.