added makematrix.py