Find if pair of elements in array sums up to X