removed unused methods for selecting pivot and swapping values