https://github.com/aleksandarhaber/sparse-approximate-inverse-of-a-sparse-matrix--matlab-implementation