Calculates Area and Perimeter of any polygon