Added method to retrieve primal solution.