program designed to calculate perimeter from a set of given points.