trying to gain some more efficiency
new utility for symmetrizing matrices
separate function for smoothing step
simplified functions