some algorithm to compute convex null