multi_type_matrix: add code example on how to use the walk method effectively.
Add a code example on how to use multi_type_matrix's walk method. This method is quite powerful but is a bit hard to understand to new comers. We should have good documentation on how to use it effectively.