Functions
get_independent_submatrices(matrix)
get_independent_submatrices
Partition a matrix into irreducible block diagonal form