created Sorting and GenericSorting classes as base classes for the sorting algorithms