Implementation of SPH fluid with both CPU and GPU (2D and 3D)