Renamed triangular_matrix_restrictive_index and triangular_matrix_permissive_index to mr and mp
Replaced triangular_matrix by vector