Added pseudocode for SS measures. Doesn't include Wang.