It was only a matter of time until some real programmers got around to optimizing it all.
As a general rule, if your solution is "giant matrices", then you are doing it wrong. Matrices are a very mathematician-minded approach that is seldom even vaguely efficient.