Efficient And Flexible Algorithm For Plant Layout Generation