If A(2, -5), B(-2, 5), C(x, 3) and D(1, 1) be four points such that AB and CD are perpendicular to each other, find the value of x.