Simplified pinv computation