minskcity, you've been very, very helpful! :D
Your AC solution is much more robust than the one I found on the web.
The bug is in my program. It is not handling the colinear points (498,9), (498,91), and (498,312) properly. It gets confused and leaves (498,312) outside the hull.
When you deleted ...