Fixed potential segfault in lsmatrix
Merge branch 'master' of https://github.com/cbdevnet/matrix-tools