Implemented the modified algorithm and removed the __pycache__ folder.