N^2 log(N)
N^2