3D SPH Simulations of Shocks in Accretion Flows around black holes