Oh.. I forgot to sort them.... Ok, I can change the algorithm to O(n*n)... It's more readable.