private List addNodeToList(int startIndexForNode,int endIndexForNode){
  List localvmList=new ArrayList();
  for (int i=startIndexForNode; i < endIndexForNode; i++) {
    localvmList.add(vm[i]);
  }
  return localvmList;
}

private List addNodeToList ( int startIndexForNode , int endIndexForNode ) { List localvmList = new ArrayList ( ) ; for ( int i = startIndexForNode ; i < endIndexForNode ; i ++ ) { localvmList . add ( vm [ i ] ) ; } return localvmList ; }
this function adds nodes to node list
