code: public static double getValueForRank(int rank,double[] scores){
      double[] copy = new double[scores.length];
      System.arraycopy(scores,0,copy,0,scores.length);
      java.util.Arrays.sort(copy);
      rank = scores.length-rank;
      return copy[rank];
    }
docs: Returns the value of the nth score once sorted
  Used to determine whether or not to keep an attribute
  *