helper methods for timing sorts