Smoothed Particle Hydrodynamics for Relativistic Heavy Ion Collisions