A routine to consume free space is implemented.
Find optimal rect routine is updated.