Compute a path in the binary matrix. Start path at the point (x0,x1), which must be an upper left corner of the path. Also compute the area enclosed by the path. Return a new Path object, or NULL on error (note that a legitimate path cannot have length 0).