Added matrix.py script