update Two Sum from O(n^2) to O(n)