You can download a file to play with: https://deekey.gumroad.com/
A short explanation of how you can easily and quickly place instances of objects in a single line.
A more complex version of the algorithm with circular packing can be downloaded by the link.