Text this: Linear array beampattern gain optimization techniques