Forum member @schuler his code is excellent and pure Pascal. VERY good to learn many if not most aspects of AI especially machine learning and pattern detection.
Your Intel code translations are very welcome, because Intel research tend to get the most out of their processors.