Optimize S box function
Refactored encryption and decryption functions
Add decryption button and handler to GUI