Update Sorts.cpp

Added generator.