Three dimensional hydrodynamics of ultrarelativistic heavy ion collisions