Fast Clustering Using a Grid-Based Underlying Density Function Approximation