Here is the most accessible implementation I&#x27;ve seen <a href="https:&#x2F;&#x2F;depts.washington.edu&#x2F;aimgroup&#x2F;proj&#x2F;dollar&#x2F;" rel="nofollow">https:&#x2F;&#x2F;depts.washington.edu&#x2F;aimgroup&#x2F;proj&#x2F;dollar&#x2F;</a> with tons of references and existing implementations.