An improved version of the generalized correlation of