updating example codes

Added codes to sort correlation matrices by station pairs. Also added
code to plot a sorted matrix.