Add matrix/vector-wise functions to mathmagic library, add efficient log-sum algorithm to mathmagic library, add log-likelihood calculation to SVAR.py, add observation sequence probability calculation to SVAR.py