Created a tail-recursive test for sortedness.