finx a bug in matrix.py when creating random matrices