Optimal Page Replacement Algorithm Code Example