Fixed major bug in SigmaX estimation with data type being incorrect. Need to release the code on the web.