Simple Lenstra's Implementation - Tyebkhan, Daniel (2023)