Implementing QR approach for eigen problem.