A Grid Clustering Algorithm Based on Reference and Density