Test implementation of several sorting methods.