I\'m trying to convert my implementation of quicksort into a template that can be used with other containers besides a vector.
Originally I used indexes to find the
To find middle iterator you should use:
first + (last - first) / 2