public static void main(String[] args) throws IOException
      { 
      
         Double[][] d = new Double[2][8];
         for(int x = 0;x<8;x++)
         {
            d[0][x] = 40.0*Math.random();
            d[0][x] = 20-d[0][x];
            d[0][x] = function(d[0][x]);
            d[1][x] = 1.0*x;
         }
      	
         Arrays.sort(d[0]);
         Double[] d2 = new Double[8]; 
         
         for(int bleh = 0;bleh<8;bleh++)
         {
            double k = d[1][bleh];
            for(int meh = 0;meh<7;meh++)
               if(function(k)==d[0][meh])
               {
                  d2[meh]=k;
                  break;
               }
         }
         
         for(int guh = 0;guh<8;guh++)
            d[1][guh] = d2[guh];
         for(int blargh = 0; blargh<10;blargh++)
         {
            generation(d);
            generation(d);
            generation(d);
         }
      }