Efficient and scalable clustering of survival curves