Second version of ToVector.

Still only works with 4-neighborhoods. Now properly creates polygon for convex shapes. Abandoned using JTS's Convex Hull algorithm since we need to support convex shapes, instead use an algorithm that walks the parimeter.