Clustering and Similriaty

Anyone can recommend me about packages and tutorial which explain clustering and similarity, especially dtw packages?