Removed testing loop in sorting code, closes issue #1.