Updated rectGen to take command line inputs. trivialPack now finds optimal orientation (vertical or horizontal).