Changed implementation to toggle 8/16/32 bit

+Added smart exponentiation
+Formatted Code
+Added 64 bit environment