corrected compile error on mic introduced two commits earlier
improved thread-awareness of debug and some asserts
fixed bug in sumMoments_vectorized()
cleanup after previous commit
created mechanism to restrict debug to master thread of main process
implemented assert_almost_eq() with tolerance parameter like with fcmp
setting get_VECTORIZE_MOMENTS to true