QR decomp and forming QR work for square matrices