derivation of volume of cuboid