Optimizing laser cutter layout

OpenNest is probably what you are looking for.

download link for component version: