Update Translator.java

Completely changed some core methods. Now methods are quite close to OTP method of encryption. Some code optimization