Correct area algorithm