Utility functions
bug fix in image output
Change order of arguments in matching (row first !).

This commits breaks things
connected components take an optional matching and respect it
move matching computation outside of DM (this allows the re-use of the transpose of A)
SCC also fills the column permutation