Rectangular pyramid volume calculation