You can find the detailed description of the tools for hierarchical clustering under the following links:
MCS search and LibMCS
Ward clustering