Sorry David ... I was feeling frivolous
Luis,
George is a C/C++ Programmer acquaintance/associate here in Brisbane.
The fitRectangle is a translation of some C code he wrote years ago.
The fitrectangle2 is based on a pure math formulae I found on the net < didn't record the source >
( ((W+H)/(L+D))^2) + ((W-H)/(L-D))^2) = 2
getting it into lisp wasn't too hard, once I understood what was happening.