More work on AdaptSolver class. Beginning of matrix reuse data structures. Probably does not compile right now.