rewrote hullFindCap, cleaner/better readability