A new algorithm for seriation and its use in similarity dendrograms