A vector field approach to cluster analysis