Some Updates for Scattering Matrix Calculations

Changed the name of the beamFiled function to BeamHG and added two
functions: BeamHGNum and BeamHGNumInv for converting between single
element and double element numbering schemes.