code: public int getMedianIndex(final List<Integer> data, int pivot)
      {
          int medianIndex = data.size()/2;
          //What if more than one point have the samve value? Keep incrementing until that dosn't happen
          while(medianIndex < data.size()-1 && allVecs.get(data.get(medianIndex)).get(pivot) == allVecs.get(data.get(medianIndex+1)).get(pivot))
              medianIndex++;
          return medianIndex;
      }
docs: Returns the index for the median, adjusted incase multiple features have the same value.
  @param data the dataset to get the median index of
  @param pivot the dimension to pivot on, and ensure the median index has a different value on the left side
  @return