Started outline of generic RK solver