Least distance methods for the scheme of polytopes