change a n^2 algorithm in data initialization to n*log(n)
change a n^2 algorithm in
data initialization to n*log(n)

R=rsc
http://codereview.appspot.com/158041

tav/go,tav/go,tav/go,tav/go,tav/go,tav/go,tav/go