Started calculate S^WS function. calculated Gamma