A Simulation of Improved SPH Algorithm