I wrote implementation of Treyfer today out of curiosity but haven&#x27;t completely optimized it. <a href="https:&#x2F;&#x2F;odzhan.wordpress.com&#x2F;2015&#x2F;11&#x2F;13&#x2F;asmcodes-treyfer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;odzhan.wordpress.com&#x2F;2015&#x2F;11&#x2F;13&#x2F;asmcodes-treyfer&#x2F;</a>