Flexible, non-allocating Julia implementations of the CG and BiCGStab methods. Compatible with ForwardDiff.jl.