Whatever algorithm I am (re)studying, I will post my own personal implementation here for others to study. Don't cheat on that homework!