simple initial value problem solver