quick sort made easy with pointers and class