Implementation plan for Matrix
Replace most matrix operations with list comprehensions; Regroup common code into helper functions