Debugged modular_inverse function
Removed log file and updated .gitignore