added quick sort method and testing class.