Update alg2.h

Apparently using reverse iterators was taking over 2 minutes to reverse-sort the array. std::reverse() got MAX done faster than std::sort() is sorting the min.