initial value with the rest of the values in the array.So the inner loop is made to run from i+1 to length-1.
         This way the selsction sort is executed correctly.

         In Quick sort the first thing that is done is that the parameter that is passed in this functiom  this.qsort(0, this.a.length);
         it should be this.a.lenght-1 .
         Further in the 'if' loop this.qsort(p,q) called twice with 'q' passed in both the functions.there will be a repetitive check of
         the q value that is the pivot element.So two avoid that q+1 is passed in the second function which checks the second half of the
         array starting from pivot element+1.