Sorting points into neighborhoods (SPIN): data analysis and visualization by ordering distance matrices