Logistic Map Algorithm Code Example