What you do has nothing to do with the Runge-Kutta-Method. I reccomend that you look up the formula (most likely you want four step, fourth order method. For a change, the formula on Wikipedia seems to be OK)
Edit. I didn't see that you wanted to use the second order method. I don't know the formula for it, but it seems evident that your code does not use the relevant data (e.g. h&t).
Since the second-order method is not too common, I suggest that you post the formula or a link to it.
May I ask why you want us to implement it for you? There are libraries that solve ordinary differential equations better than anyone here is able to do in a posting (there are some numerical problems which do not allow a simple "hack in the formula and you are done"-approach).