Changed the scope of estimatesMatrixToVector