Updated gmres implementation to use abs, closes #26, closes #29