Logic for lay outing cells for nvars : 2,3,4