small example computing "compactness" of shapes