Added option GapFactor for controling the size of the gap between the rectangles in the recursive calls.