Removed duplication of first and last point in point array