update tests to remove duplicates and actual algorithm to remove duplicate points at union points. make comparision more clear for determining whether a pair can be unioned. still doesnt seem to be unioning anything