Improve the performance of DenseQRSolver 1. Reduce amount of reallocations. Change-Id: I91b17c781ae94ed12014d647f0162cfce4f6ed7b