title: Algorithm to generate Metro UI style Tiles based on Menu Items?
body: <p>I am making an Angular App. I want the main menu to look like the tiles in Windows 8.
  Now I want an algorithm that will automatically generate a pattern for tiles where some tiles are bigger than others.</p>
  
  <p>So basically I would like to create a component to whichI will provide a dataSource as an array of Json objects containg menu-items.</p>
  
  <p>and then the component should layout tiles in a fashion that it accommodates all of them.</p>
  
  <p>How should I go about it?</p>
  
  <p>I am learning angularjs. Can I avoid using jQuery plugins and do without it ?</p>