public int addLoc(Point point){
    int curr=findIndex(point);
    if(curr!=-1)
      return curr;
    if(current==maximum){
      reSize(); 
    }
    locations[current]=new Location(point);
    locations[current].setID(current);
    current++;
    return (current-1);
  }