Refactored monoalphasubstitution and transposition modules so that constructors now take encoder classes as parameters