finish mat.py
original hw3 is overwritten, so the work is gone
added homework to Matrix; 1st edition to Week6, but too slowly
another solution, a bit faster, take 2 hours to get solution (not verified)
a working but very slowly version, running time 2hours
a working version