Added matrices.py; bugfix in compute.py.