More tests for four points. Simpler algorithm.
Removed unfinished tag for four points.
Added array duplicates