four sum problem

works in n^2 log n