Computing Signed Permutations of Polygon