Finding the volume of a 3D shape