added Gremlin code for Pivot sample