support sparse matrices in LR-SDP

Here is a mergable pull request which passes the LRSDP test case. References issue #3.