Added diagnostics and made minor change to partial pivoted LU