VolumeCalculating volume of prism and pyramid