Added routine to calculate energy spectrum.

Working on data processing routines. Added spectrum calculation, and tested it
on the TG vortex initialization. It appears to be working.