Attempting to calculate pseudo inverse directly