fixed some problems with K, G, D matrices; KSPSolver is broken though