Created replacement matrices package and fixed cipher

Huge (effective) changes!