Optimizing the layout of rectangular hull tiles