Please refer any guide for nesting Program calculation.
I do not think there would be any tutorials available else everyone would have made the nesting macro.
Just keep 'gooooogling', Here's a possible start point
algorithm - Nesting maximum amount of shapes on a surface - Stack Overflow
Retrieving data ...