implemented a truly dynamic qr decomposition - still buggy