A practical MATLAB implementation of  Rodriguez, A. and A. Laio (2014). "Clustering by fast search and find of density peaks." Science 344(6191): 1492-1496.