&gt; Easier to take 20 minutes and just write the tool.<p>What? That would be a huge red flag in my book. Where are your unit tests? I&#x27;m not trusting your 20 minute off the cuff reproduction of classic algorithms in any business critical piece of the code, not ever.<p>This would get you booted from a lot of places, or at least given a stern talking to for doing something that seems slick, cool, and time-saving in the short term (yay, let&#x27;s roll our own!) when really it&#x27;s immature and time-wasting in the long run.<p>Never (!) homebrew that shit unless you <i>have</i> to (like, you&#x27;re in an embedded environment or your use case requires some bleeding edge research algorithm).<p>It&#x27;s like seeing someone write their own argument-parsing code. Holy shit, what a bad idea. <i>Never</i> (!) do that.