Added statistical computation of the vector that gives max variance