I want an algorithm to arrange the boxes in given top box. The initial box shape is square & it can be overlapping. Arrange the box such a way that relative distance with each other boxes should be disturb minimal. The shape can be changed. Also the boxes must cover the edges & corner of the top box (as much as possible).