now using Box-Muller Method to generate white gaussian noise; outsourced two functions to util.h