Added the pseudo-inverse