Simple SPN (Substitution Permutation Network) implementation for educational purposes