Add DenseLinearSystem class.
add sparsity object as a parameter for constructor in DenseLinearSystem
Initialize global matrix on creation.

Fixes a bug occuring randomly depending on memory content.