Rectangular pyramid volume and height calculations