pinv -- pseudoinverse of matrix