quick sort using the operator new for dynamic alloc