span class="n">numIterations</span> <span class="p">=</span> <span class="mi">5</span><span class="p">;</span>
<span class="n">numIterationsKM</span> <span class="p">=</span> <span class="mi">3</span><span class="p">;</span>

<span class="n">X</span> <span class="p">=</span> <span class="nb">rand</span><span class="p">(</span><span class="n">dimension</span><span class="p">,</span><span class="n">numData</span><span class="p">);</span>
<span class="n">numTrials</span> <span class="p">=</span> <span class="m