comp_lw function

Calculate Length Width Compactness