Improving the Quality of Clustered texts based on Distance Metrics