A New Implementation Of Clustering Algorithm And Its Application In Net-Tree Construction Algorithm