Question : Given a set of points, return the rectangles (set of points that form rectangles)
Input : [1,1], [4,1], [1,3], [4,3], [1,4], [2,4], [2,1] Output [[1,1], [1,3], [4,1], [4,3]], [[1,1],[1,4],[2,4],[2,1]]