The Matrix Algebra of Logic (From Logic Operators to Cellular Automata)