  public void gpuMethod() {
    for (int i = 0; i < iterations; i++) {
      double x = 1;
      double y = 1;
      Result result = new Result();
      if ((Math.sqrt(x * x + y * y) < 1.0)) {
        result.hit = 1;
      } else {
        result.hit = 0;
      }
      resultList.add(result);
    }
  }

  public void gpuMethod() {
    for (int i = 0; i < iterations; i++) {
      double x = 2.0 * Math.random() - 1.0; 
      double y = 2.0 * Math.random() - 1.0; 
      Result result = new Result();
      if ((Math.sqrt(x * x + y * y) < 1.0)) {
        result.hit = 1;
      } else {
        result.hit = 0;
      }
      resultList.add(result);
    }
  }
