Change allocate-machines to return the first solution
Merge pull request #4 from nberger/refactor-easier-to-use-fn

refactor: change allocate-machines to return the first solution