Make O(n^2) but need On