SortLib: delete -> delete[] where needed