Calculating area of irregular shapes