Variational Study Of The Nematic State Of The Two Dimensional Electron Gas In A Magnetic Field