Added initial version of minres.
MINRES seems to be converging, but there are still a few bugs.
Merged master with local copy.