private void updateCoreBorderObjects(int clusterid){
  int i=cores.length;
  cores=Arrays.copyOf(cores,clusterid);
  borders=Arrays.copyOf(borders,clusterid);
  while (i < clusterid) {
    cores[i]=new Core(i);
    borders[i]=new Border(cores[i]);
    ++i;
  }
}

private void updateCoreBorderObjects ( int clusterid ) { int i = cores . length ; cores = Arrays . copyOf ( cores , clusterid ) ; borders = Arrays . copyOf ( borders , clusterid ) ; while ( i < clusterid ) { cores [ i ] = new Core ( i ) ; borders [ i ] = new Border ( cores [ i ] ) ; ++ i ; } }
update the shared arrays for core points ( to conserve memory )
