added BuildSigma.R