justified-layout

Pass in box sizes and get back sizes and coordinates for a justified layout