Update linalg notes
Fix a bug