sde solver implementation