Changed the gsm_noise_covar() function so that it just calculates Nfg directly instead of calculating G and R first and then multiplying. This keeps memory usage down. Also learned not to put print statements in every iteration of a large loop b/c that makes the Terminal memory usage blow up.