Volume of pyramids and cones