title: Creating Algorithm: Box Split when there is maximum no.of points in the box
body: <p>Hello I need help with making algorithm with the following:</p>
  
  <p>Let's say a 2d domain of space with xmax, xmin, ymin, ymax, with 'n~10,000' of points in the space. </p>
  
  <ol>
  <li><p>Go through lists of points positions.</p></li>
  <li><p>When there is maximum no,of points (lets say 10) in the box, the box split into 4 equal smaller boxes.</p></li>
  <li><p>Then check again if the each of the smaller box has more than maximum no. of points. it will split again into 4 equal smaller boxes.... until the box has less than the maximum no.of points per box.</p></li>
  </ol>
  
  <p>Any suggestions how I can make this algorithm? Please?</p>
  
  <p>Cheers!</p>