Update profile_matrix.py