Computing volume of a cylinder