Solving for the area of irregular shapes