Added support for sparse matrix format bsr, along with format check

I had to modify sparseSharedVariable as it wouldn't pass assert on format attribute.

As it seemed to work "out of the box", nearly no modification was needed for structuredDot.