added option to compute permanet of the matrix by dividing it in blocks
added option to compute permanet of the matrix by dividing it in blocks

albapa/glosim,epfl-cosmo/glosim,albapa/glosim,epfl-cosmo/glosim