Calculating volume of cones and hemispheres.