rank_angle function

Rank distance angles from a cosine similarity matrix