<p>So, I fixed some bugs and implemented all your comments. I'm not sure if the <code>std::vector&lt;bool&gt;</code> code is simpler (or even faster) than the initial code. Some tests I ran gave pretty similar results, but that may be because of the parameters.</p>

<p>I tried to fix as many style issues as I could find, let me know what I didn't find because I think if you fix it I won't remember it for next time :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/691#issuecomment-228103584">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFGDt5x7EJoA9nk7K3x49f1y__KQAks5qOrJOgaJpZM4IxQW5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFHJpobam17cnJ-MCkZUYPmxm9oK1ks5qOrJOgaJpZM4IxQW5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/691#issuecomment-228103584"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>