calculate area of irregular polygon