Computes a minimal rectangular decomposition of a rectilinear polygon