Added test code to the stack sort method...