O(n^2) never hurt anybody